package org.su.webadapter.render;


import org.su.generalmvc.IModel;
import org.su.generalmvc.render.IRender;
import org.su.webadapter.velocity.HtmlHelper;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;


/**
 * 
 * @author yangchuan 2010-8-26 下午03:23:34
 *RpcDataBinderRpcDataBinder
 */
public class VelocityExceptionRender implements IRender {
	@Override
	public void render(IModel model, Object path, String defaultPath, ServletRequest request,
			ServletResponse response) {
		HtmlHelper.INSTENCE.generateHtml(model.getModel(), "pages/exception.vm", request, response);
	}
}
